<!DOCTYPE html>
<html lang="en" class="h100">
<head>
    <title>{$web_title}</title>
    {include file='public/public_head' /}
</head>
<body>
    <div class="main-wrap index-wrap">
        <div class="content">
            <!-- banner-wrap -->
            <div class="banner-wrap index-banner-wrap">
                <div class="swiper-container index-swiper-container">
                    <div class="swiper-wrapper">
                        {volist name="banner_list" id="item"}
                        <div class="swiper-slide pic-wrap">
                            <img src="{$item.img | default='__INDEX__/img/default_pic.jpg'}" alt="" class="swiper-slide-img pic-img index-banner-img" />
                        </div>
                        {/volist}
                    </div>
                    <div class="swiper-pagination index-swiper-pagination"></div>
                </div>

            </div>

            <!-- list-wrap -->
            <ul class="list-wrap user-list-wrap flex wrap">
                {volist name="staff_list" id="item"}
                <li class="list-item user-list-item">
                    <div class="pic-wrap user-pic-wrap pos-r" style="background-image: url({$item.profile_pic | default='__INDEX__/img/default_pic.jpg'});">
                        <div class="empty-view"></div>
                        <div class="score-wrap pos-a flex ccc text-c">{$item.score | default='0.0'}</div>
                    </div>
                    <div class="user-info-wrap">
                        <div class="user-top-wrap flex rcb">
                            <div class="name-wrap flex rcs">
                                <div class="user-name">{$item.nickname}</div>
                                <div class="user-age">{$item.real_name}</div>
                            </div>
                            <div class="btn-item vote-btn-item flex ccc" {if !$item.vid}onclick="openVotePopup({$item.id}, {$current_vote_id})"{/if}>
                                <span class="btn-item-title">{if $item.vid}已投({$item.v_score}){else /}点我投票{/if}</span>
                            </div>
                        </div>
                        <div class="user-profile text-j text-line line-3">{$item.desc | default=$item.profile}</div>
                    </div>
                </li>
                {/volist}
            </ul>
                
            <div class="btn-wrap fix-btn-wrap pos-f none {if $is_vote_all < 1}none{/if}">
                <a class="btn-item fa fa-bar-chart flex ccc" href="{:url('vote_result')}">查看排行</a>
            </div>

                
            <div class="btn-wrap fix-btn-wrap pos-f {if $is_login < 1}none{/if}">
                <a class="btn-item fa fa-power-off flex ccc" href="javascript:doLogout();">点我退出</a>
            </div>

            <div class="login-mask pos-f {if $is_login > 0}none{/if}"></div>
            <div class="popup-wrap login-wrap {if $is_login > 0}none{/if} flex cca">
                <div class="wrap-title">用户登录</div>
                <div class="wrap-con flex ccc">
                    <div class="login-item">
                        <input type="number" class="login-input-item" placeholder="请输入手机号进行登录" name="nickname" id="nickname" value="" />
                    </div>
                    <div class="btn-item login-btn-item" onclick="doLogin();">立即登录</div>
                </div>
            </div>

        </div>
    </div>
    {include file='public/public_script' /}
    {include file='public/footer' /}
</body>
</html>